package com.aplink.generic.pojo.controlspec;

import com.aplink.generic.util.AndroidUIParser;

public class SpinnerSpec extends ControlSpec {
    private boolean isAddblank;
    private String displayProperty;
    private String valueProperty;
    private String mContentData;

    public SpinnerSpec( boolean isAddblank, String displayProperty,
                        String valueProperty ) {
        super();
        this.isAddblank = isAddblank;
        this.displayProperty = displayProperty;
        this.valueProperty = valueProperty;
    }

    public boolean isAddblank() {
        return isAddblank;
    }

    public void setAddblank( boolean isAddblank ) {
        this.isAddblank = isAddblank;
    }

    public String getDisplayProperty() {
        return displayProperty;
    }

    public void setDisplayProperty( String displayProperty ) {
        this.displayProperty = displayProperty;
    }

    public String getValueProperty() {
        return valueProperty;
    }

    public void setValueProperty( String valueProperty ) {
        this.valueProperty = valueProperty;
    }

    public String getContentData() {
        return mContentData;
    }

    public int getContentDataId() {
        return AndroidUIParser.getRawIdByName( mContentData );
    }

    public void setContentData( String contentData ) {
        mContentData = contentData;
    }

}
